package com.freewater.springboot.demo.ioc.qualifier.customqualifier;

import com.freewater.springboot.demo.ioc.qualifier.MovieCatalog;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;

@Getter
public class MovieRecommender {

    @Autowired
    @MovieQualifier(format = Format.VHS, genre = "Action")
    private MovieCatalog actionVhsCatalog;

    @Autowired
    @MovieQualifier(format = Format.VHS, genre = "Comedy")
    private MovieCatalog comedyVhsCatalog;

    @Autowired
    @MovieQualifier(format = Format.DVD, genre = "Action")
    private MovieCatalog actionDvdCatalog;

    @Autowired
    @MovieQualifier(format = Format.BLURAY, genre = "Comedy")
    private MovieCatalog comedyBluRayCatalog;

}
